<?php

	require_once('php/Database.php');
	require_once('php/Update.php');
	require_once('php/Message.php');
	require_once('php/Communicator.php');

	$db = new Database;
	$user = new stdClass;
	$user->id = 10002323234343;

	$message = new Message();
	$message->setMessage($user,'teste da mensagem',date('Y-m-d H:i:s'),'1000');

	$params = array('user'=>$user->id,'text'=>'asdsadsds','time'=>'10/08/1989','parent'=>100000,'session'=>'50','parent_replies_number'=>5);
	$params['user'] = array($params['user'],'string');

	$array = assocArrayToNumArray($params);

	$a = $db->getInsertQuery('message',$params);
	echo $a;

	/*$array = array('user'=>array(22220000022222,'string'),'f2'=>1,'f3'=>'b');
	$array = assocArrayToNumArray($array);
	$a = $db->getInsertQuery('message',$array);	
	echo $a;*/

?>